package com.ruoyi.project.data.domain;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Objects;

public class WorksRecords  extends BaseEntity {
    private String regId;
    private int dId;
    private String dName;
    private double regPrice;
    private String patiName;

    public WorksRecords() {
    }

    public WorksRecords(String regId, int dId, String dName, double regPrice, String patiName) {
        this.regId = regId;
        this.dId = dId;
        this.dName = dName;
        this.regPrice = regPrice;
        this.patiName = patiName;
    }

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public double getRegPrice() {
        return regPrice;
    }

    public void setRegPrice(double regPrice) {
        this.regPrice = regPrice;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof WorksRecords)) return false;
        WorksRecords that = (WorksRecords) o;
        return dId == that.dId &&
                Double.compare(that.regPrice, regPrice) == 0 &&
                Objects.equals(regId, that.regId) &&
                Objects.equals(dName, that.dName) &&
                Objects.equals(patiName, that.patiName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(regId, dId, dName, regPrice, patiName);
    }

    @Override
    public String toString() {
        return "WorksRecords{" +
                "regId='" + regId + '\'' +
                ", dId=" + dId +
                ", dName='" + dName + '\'' +
                ", regPrice=" + regPrice +
                ", patiName='" + patiName + '\'' +
                '}';
    }
}
